package com.bonuo.crm.service.impl;

import com.bonuo.crm.domain.CustomerVisit;
import com.bonuo.crm.mapper.CustomerVisitMapper;
import com.bonuo.crm.service.CustomerVisitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerVisitServiceImpl implements CustomerVisitService {

    @Autowired
    private CustomerVisitMapper customerVisitMapper;

    @Override
    public List<CustomerVisit> selectCustomerVisitList(CustomerVisit customerVisit) {
        return customerVisitMapper.selectCustomerVisitList(customerVisit);
    }

    @Override
    public int insertCustomerVisit(CustomerVisit customerVisit) {
        return customerVisitMapper.insertCustomerVisit(customerVisit);
    }

    @Override
    public int updateCustomerVisit(CustomerVisit customerVisit) {
        return customerVisitMapper.updateCustomerVisit(customerVisit);
    }

    @Override
    public int deleteCustomerVisitById(Integer id) {
        return customerVisitMapper.deleteCustomerVisitById(id);
    }
}
